package com.genersoft.iot.vmp.gb28181.service.impl;

import com.genersoft.iot.vmp.gb28181.bean.CommonGBChannel;
import com.genersoft.iot.vmp.gb28181.dao.TestAllChannelManageMapper;
import com.genersoft.iot.vmp.gb28181.service.TestAllChannelManageService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestAllChannelManageServiceImpl implements TestAllChannelManageService {
    @Autowired
    private TestAllChannelManageMapper testAllChannelManageMapper;
    @Override
    public PageInfo<CommonGBChannel> allChannelList(int page,int count) {
        PageHelper.startPage(page, count);
        List<CommonGBChannel> allList = testAllChannelManageMapper.allChannelList();
        return new PageInfo<>(allList);
    }
}
